Skip to content

build(W-23983670): migrate to eslint flat config and typescript 6 - #495

Closed
k80bowman wants to merge 1 commit into
mainfrom
k80/ts-v6
Closed

build(W-23983670): migrate to eslint flat config and typescript 6#495
k80bowman wants to merge 1 commit into
mainfrom
k80/ts-v6

Conversation

@k80bowman

Copy link
Copy Markdown

What does this PR do?

Upgrade @salesforce/dev-scripts to v14, typescript to v6, and eslint to v10 with flat config (eslint.config.mjs + eslint-suppressions.json), replacing the legacy .eslintrc.cjs setup. Remove redundant type assertions and stale eslint-disable comments surfaced by the new rules.

What issues does this PR fix or reference?

@W-23983670@

@k80bowman
k80bowman requested a review from a team as a code owner September 8, 2026 19:33
Comment thread eslint.config.mjs
@@ -0,0 +1 @@
export { default } from 'eslint-config-salesforce-typescript';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't equivalent to the old one. We also need to be using sf-plugin/recommended and xo-react.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't add xo-react back because it depends on eslint-plugin-react which does not have a version that supports eslint 10. I tried updating xo-react to the latest version, but eslint-plugin-react was still causing problems.

@k80bowman

Copy link
Copy Markdown
Author

Closing since we can't upgrade to eslint v10 (flat config) and keep xo-react and we can't upgrade to TypeScript v6 without upgrading to eslint v10.

@k80bowman k80bowman closed this Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants